package com.example.shixi.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.shixi.pojo.Book;

import java.util.List;

public interface BookService {

    Book getById(Integer id);
    List<Book> getAll();
    boolean save(Book book);
    boolean deleteById(Integer id);
    boolean update(Book book);
    IPage<Book> getByPage(Integer current, Integer size);
}
